import request from '@/utils/request'

// 查询投资信息列表
export function listInvestmentInfo(query) {
  return request({
    url: '/trade/investmentInfo/list',
    method: 'get',
    params: query
  })
}

// 查询投资信息详细
export function getInvestmentInfo(investmentId) {
  return request({
    url: '/trade/investmentInfo/' + investmentId,
    method: 'get'
  })
}

// 新增投资信息
export function addInvestmentInfo(data) {
  return request({
    url: '/trade/investmentInfo',
    method: 'post',
    data: data
  })
}

// 修改投资信息
export function updateInvestmentInfo(data) {
  return request({
    url: '/trade/investmentInfo',
    method: 'put',
    data: data
  })
}

// 删除投资信息
export function delInvestmentInfo(investmentId) {
  return request({
    url: '/trade/investmentInfo/' + investmentId,
    method: 'delete'
  })
}
